package com.sq.universe.system.dao;

import com.sq.universe.base.dao.BaseDao;
import com.sq.universe.system.entity.DepartmentEntity;
import com.sq.universe.system.entity.MenuEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface MenuDao extends BaseDao<MenuEntity> {

    /**
     * 查询所有子节点数据
     * @param menuParenCode
     * @return
     */
    List<MenuEntity> queryChildren(@Param("departmentParentCode") String menuParenCode);

    /**
     * 查询树装数据
     * @param menuEntity
     * @return
     */
    List<MenuEntity> queryTree(MenuEntity menuEntity);

}
